//
//  HTViewController.m
//  UIButtonHTAdditions
//
//  Created by Snail9367 on 08/22/2024.
//  Copyright (c) 2024 Snail9367. All rights reserved.
//

#import "HTViewController.h"
#import "UIButton+HTAdditions.h"

@interface HTViewController ()

@property (nonatomic, strong)UIButton *masonryButton;

@end

@implementation HTViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
    _masonryButton = ({
        UIButton *btn = [UIButton buttonWithType:UIButtonTypeSystem];
        btn.kCornerRadius = 8.0f;
        btn.kBorderWidth = 1.0f;
        btn.gBorderColor = btn.ht_normalTitleColor;
        btn.ht_normalTitle = @"code创建-Masonry布局的按钮";
        btn.titleLabel.font = [UIFont systemFontOfSize:14.0f];
        [self.view addSubview:btn];
        btn.frame = CGRectMake(100, 100, 100, 50);
        btn;
    });
    
	// Do any additional setup after loading the view, typically from a nib.
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
